package com.cy.pet.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cy.pet.common.pojo.Topic;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description:
 * @author: LiuXingYu
 * @date: 2021/9/30 15:28
 */
public interface TopicMapper extends BaseMapper<Topic> {

    @Select("select * from topic order by count desc limit 0,3")
    List<Topic> findHotTopicList();
}
